package org.etl.kfrwe.controller;

import org.etl.kfrwe.bean.Test20181129;
import org.etl.kfrwe.service.Test20181129Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class Test20181129Controller {

    @Resource
    private Test20181129Service test20181129Service;

    @RequestMapping("/test")
    public String index() {
        return "Hello World";
    }

    @RequestMapping("/findAll")
    public List<Test20181129> findAll() {
        return test20181129Service.selectList();
    }
}
